package com.hlw.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author Mht
 * @since 2020-05-02
 */
@TableName("sys_menu")
public class Menu {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单图标
     */
    private Integer pid;

    /**
     * url地址
     */
    private String url;

    /**
     * 菜单排序号
     */
    private String pname;

    /**
     * 菜单层级
     */
    private String permission;

    /**
     * 是否是菜单（1：是  0：不是）
     */
    private Integer ismenu;

    /**
     * 备注
     */
    private Date create_time;

    /**
     * 菜单状态 :  1:启用   0:不启用
     */
    private Date update_time;

    /**
     * 是否打开:    1:打开   0:不打开
     */
    private Integer del_flag;

    /**
     * 是否为前台菜单:    1:是  0:否
     */
    private Integer indexmenu;
    
    /**
     * 是否为系统默认菜单:    1:是  0:否
     */
    private Integer issys=0;
    
    List<Menu> childrens;
    /**
     * 菜单排序号
     */
    private double idx;         

    public double getIdx() {
		return idx;
	}

	public void setIdx(double idx) {
		this.idx = idx;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }
   
    public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public Integer getIsmenu() {
        return ismenu;
    }

    public void setIsmenu(Integer ismenu) {
        this.ismenu = ismenu;
    }
    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    public Integer getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(Integer del_flag) {
        this.del_flag = del_flag;
    }
    public Integer getIndexmenu() {
        return indexmenu;
    }

    public void setIndexmenu(Integer indexmenu) {
        this.indexmenu = indexmenu;
    }

   
    
    public List<Menu> getChildrens() {
		return childrens;
	}

	public void setChildrens(List<Menu> childrens) {
		this.childrens = childrens;
	}
	

	public Integer getIssys() {
		return issys;
	}

	public void setIssys(Integer issys) {
		this.issys = issys;
	}

	@Override
	public String toString() {
		return "Menu [id=" + id + ", name=" + name + ", pid=" + pid + ", url="
				+ url + ", pname=" + pname + ", permission=" + permission
				+ ", ismenu=" + ismenu + ", create_time=" + create_time
				+ ", update_time=" + update_time + ", del_flag=" + del_flag
				+ ", indexmenu=" + indexmenu + ", issys=" + issys
				+ ", childrens=" + childrens + ", idx=" + idx + "]";
	}
}
